package com.hspedu.spring.homework;

import com.hspedu.spring.bean.Car;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: lihaojie
 * @Description:
 * @DateTime: 2024/2/7 15:51
 **/
public class Homework02 {

    public static void main(String[] args) {

        ApplicationContext ioc = new ClassPathXmlApplicationContext("car_beans.xml");
        Car car = ioc.getBean("car01", Car.class);
        System.out.println(car);

    }

}
